<?php
class OrderController extends FrontendController
{
	public $defaultAction = 'order';
	public function actionOrder()
	{
		if(Yii::app()->user->isGuest){
			$this->redirect(array('/user/login'));
			Yii::app()->end();
		}else{
			$userId = Yii::app()->user->id;
			$orderTransaction = FrontendShopOrderTransactionModel::getOrderByUser($userId);
		}
		$this->render('order', array(
				'orderTransaction'=>$orderTransaction
				
				));
	}
}